package com.weirong.smartvault.dao;

import com.weirong.smartvault.entity.ForeignCurrencyType;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Qualifier("foreignCurrencyTypeRepository")
public interface ForeignCurrencyTypeRepository extends JpaRepository<ForeignCurrencyType, Integer> {

    public List<ForeignCurrencyType> findForeignCurrencyTypeByCode(String code);//code 唯一

    public ForeignCurrencyType getByCode(String code);
    public ForeignCurrencyType getByName(String code);

}
